如何在 CentOS 7 / RHEL 7 上安装 OpenSSL 1.1.x |
您所在的位置:网站首页 › centos php7 支持openssl 11 › 如何在 CentOS 7 / RHEL 7 上安装 OpenSSL 1.1.x |
OpenSSL 是一个开源软件库,由用于实现传输层安全 (TLS) 和安全套接字层 (SSL) 协议以及其他加密功能(如签名、加密、解密和验证)的工具和库组成。操作系统和许多应用程序使用 OpenSSL 通过 Internet 提供安全通信。 CentOS 7 / RHEL 7 操作系统上可用的 OpenSSL 版本有点旧,如果需要较新的版本,某些应用程序会在编译时出错。 sudo yum -y install openssl openssl-devel openssl version从输出中可以看出,可用版本是1.0.2。如果已安装,请在继续之前将其删除。 sudo yum -y remove openssl openssl-devel确认已卸载。 openssl version 在 CentOS 7 / RHEL 7 上安装 OpenSSL 1.1.xOpenSSL 库提供了一套全面的密码功能,包括数字签名、对称和非对称加密、散列和证书管理。它还支持范围广泛的密码算法,包括 RSA、DSA、Diffie-Hellman 和椭圆曲线密码术。 安装构建 OpenSSL 所需的依赖项。 sudo yum -y groupinstall "Development Tools"下载 OpenSSL 1.1.x 的源代码,其中x替换为所需的实际版本。 wget https://www.openssl.org/source/openssl-1.1.1t.tar.gz --no-check-certificate提取下载的文件。 tar xvf openssl-1.1.1t.tar.gz导航到从文件提取创建的目录。 cd openssl-1.1*/配置 OpenSSL。您可以指定 ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl在哪里: --prefix and --openssldir control the configuration of installed components. Operating system: x86_64-whatever-linux2 Configuring OpenSSL version 1.1.1t (0x1010114fL) for linux-x86_64 Using os-specific seed configuration Creating configdata.pm Creating Makefile ********************************************************************** *** *** *** OpenSSL has been successfully configured *** *** *** *** If you encounter a problem while building, please open an *** *** issue on GitHub *** *** and include the output from the following command: *** *** *** *** perl configdata.pm --dump *** *** *** *** (If you are new to OpenSSL, you might want to consult the *** *** 'Troubleshooting' section in the INSTALL file first) *** *** *** **********************************************************************使用make命令构建 OpenSSL 1.1.x。 make -j $(nproc)在 CentOS 7 / RHEL 7 上安装 OpenSSL 1.1.1 sudo make install更新共享库缓存。 sudo ldconfig更新系统范围的 OpenSSL 配置: sudo tee /etc/profile.d/openssl.sh |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |